<form [formGroup]="produceForm">
  <ng-tools-alert #alert [options]="alterOption"></ng-tools-alert>
  <div class="form-group row">
    <label for="generateCount" class="col-3 col-form-label text-right">生产个数</label>
    <input id="generateCount" type="number" formControlName="generateCount">
  </div>
  <div class="form-group row">
    <label for="nickNameExcel" class="col-3 col-form-label text-right">点击上传昵称</label>
    <button class="btn btn-sm btn-teal" id="nickNameExcel" (click)="clickUploadName()">
      上传
    </button>
    <input #nameInput type="file" (input)="selectNameFile($event)" formControlName="nickNameExcel" style="display: none">
  </div>
  <div class="form-group row">
    <label for="headImgZip" class="col-3 col-form-label text-right">点击上传头像</label>
    <button class="btn btn-sm btn-teal" id="headImgZip" (click)="clickUploadAvatar()">
      上传
    </button>
    <input #avatarInput type="file" (input)="selectAvatarFile($event)" formControlName="headImgZip" style="display: none">
  </div>



  <div class="row">
    <div class="col-12 text-center">
      <button class="btn btn-sm btn-teal w-50" [disabled]="isLoading || !produceForm.valid" (click)="produceRobot()">
        生产
      </button>
    </div>
  </div>
</form>
